package com.tb.flutter_ad.view;

import android.app.Activity;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.platform.PlatformViewRegistry;

public class BannerViewFlutterPlugin {

    public static void registerWith(Activity activity, FlutterPlugin.FlutterPluginBinding binding) {
        PlatformViewRegistry platformViewRegistry = binding.getPlatformViewRegistry();
        platformViewRegistry.registerViewFactory("com.tb.mob/bannerview", new BannerViewFactory(activity, binding.getBinaryMessenger()));
    }
}
